import request from '../utils/request'

// 上传视频接口
export const upvideo =(data:any)=>{
  return request({
    url:"/VueHandler/UpLoadVideoHandler",
    method:"post",
    data,
    headers:{
      "Content-Type":"multipart/form-data"
    }
  })
} 

// 添加视频接口
export const addVideo=(data:any)=>{
  return request({
    url:"/VueHandler/VideoHandler?action=add",
    method:"post",
    data
  })
}
// 获取视频列表接口
export const getVideoList=(data:any)=>{
  return request({
      url:"/VueHandler/VideoHandler?action=showlist",
      method:"post",
      data
  })
}
// 删除视频接口
export const delVideo=(ID:any)=>{
  return request({
      url:"/VueHandler/VideoHandler?action=delete",
      method:"get",
      params:{
        ID
      }
  })
}
// 编辑视频接口
export const editVideoApi=(data:any)=>{
  return request({
      url:"/VueHandler/VideoHandler?action=update",
      method:"post",
      data
  })
}
